package cloudInformation.service.impl;

import cloudEntity.entity.dorm.SmartDormEntity;
import cloudEntity.leftJoin.DormPersonLeftJoin;
import cloudEntity.vo.dorm.SmartDormPersonDesVO;
import cloudInformation.mapper.SmartDormMapper;
import cloudInformation.service.SmartDormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: Smart School
 * @ClassName SmartDormServiceImpl
 * @description:
 * @author: 陈智博
 * @create: 2025-04-17 15:36
 * @Version 1.0
 **/
@Service
public class SmartDormServiceImpl implements SmartDormService {

    @Autowired
    private SmartDormMapper smartDormMapper;

    @Override
    public List<SmartDormEntity> GetDormByIds(String ids) {
        return smartDormMapper.GetDormByIdsReturnList(ids);
    }

    @Override
    public List<DormPersonLeftJoin> GetDormPersonByIds(String ids) {
        List<DormPersonLeftJoin> dormPersonLeftJoins = smartDormMapper.GetDormPerson(ids);
        return dormPersonLeftJoins;
    }

    @Override
    public List<SmartDormPersonDesVO> GetDormPersonDes(String ids) {
        List<SmartDormPersonDesVO> smartDormPersonDesVOS = smartDormMapper.GetDormPersonDes(ids);
        return smartDormPersonDesVOS;
    }

}
